package agency.tango.materialintroscreen.animations.wrappers;

import ohos.agp.components.Component;

import agency.tango.materialintroscreen.animations.ViewTranslationWrapper;
import agency.tango.materialintroscreen.animations.translations.AlphaTranslation;
import agency.tango.materialintroscreen.animations.translations.DefaultAlphaTranslation;

/**
 * @ProjectName: material-intro-screen-master
 * @Package: agency.tango.materialintroscreen.animations.wrappers
 * @ClassName: ViewPagerTranslationWrapper
 * @Description: pageslider滑动行为动画设置类(默认动画 退出动画)

 * @CreateDate: 2021/4/12 15:57

 * @UpdateDate: 2021/4/12 15:57
 * @UpdateRemark: 暂无
 * @Version: 1.0
 */
public class ViewPagerTranslationWrapper extends ViewTranslationWrapper {
    public ViewPagerTranslationWrapper(Component view) {
        super(view);
        setDefaultTranslation(new DefaultAlphaTranslation())
                .setExitTranslation(new AlphaTranslation());
    }
}